home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / docs / howto / installProg / text0000.txt < prev   
Encoding:
Text File  |  1992-12-14  |  1.4 KB  |  31 lines

  1. It is quite easy to install a program on Sprite.
  2. Finding or writing the man page is probably the
  3. hardest part ;)  We have a 'mkmf' program that makes
  4. it trivial to set up a makefile for a set of sources.
  5. Put all the sources into a directory, ideally
  6. /sprite/src/cmds/less, (unless 'less' is an AT&T program,
  7. in which case it goes in /sprite/src/attcmds/less)
  8. After you've collected the sources, make some
  9. machine-type subdirectories:  sun3.md sun4.md
  10. and then execute 'mkmf'.  It takes no arguments.
  11. It will create a Makefile and a number of
  12. associated .mk files  (sun3.md/dependencies.mk sun3.md/tm.mk)
  13. and it will run 'pmake depend'.  Finally, if you
  14. type 'pmake' you'll get parallel make.  'pmake sun3'
  15. will create a sun3 program (which is the default if
  16. you are executing on a sun3.) or 'pmake sun4' will
  17. make a sun4 program.  The compiled image will be
  18. put into sun3.md/less (or sun4.md/less) and will
  19. be installed to /sprite/cmds.sun3 (or cmds.sun4).
  20. You should also try to find a man page.  If you can't
  21. find the 4.3BSD man page you can edit /sprite/lib/forms/man
  22. (that may not be the exact name).  The man page goes into
  23. the file 'less.man' in the source directory.  The makefile
  24. copies it to the correct place when you 'pmake install'.
  25.     brent
  26.  
  27. ps.  You can use this same procedure for programs under your
  28. home directory.  You might try experimenting with the
  29. less program there first.  Let me know if you have problems.
  30.  
  31.